package DD;

public class JumppingDemo {
    public static void main(String[] args) {
        JumppingOperater jumppingOperater=new JumppingOperater();
        jumpping j=new Cat();
        jumppingOperater.method(j);
        jumpping j2 =new Dog();
        jumppingOperater.method(j2);
        jumppingOperater.method(new jumpping() {
            @Override
            public void jump() {
                System.out.println("猫可以跳高了");
            }
        });
    }
}
